<template>
  <div class="about">
    <h1>state:{{$store.state.msg}}</h1>
    <p v-for="goods in goodsList" :key="goods.id">
      {{goods.goodsName}}
    </p>
  </div>
</template>
<script>
import {mapState} from 'vuex';
export default {
  computed:{
    ...mapState(['goodsList'])
  }
}
</script>